<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width = device-width, initial-scale = 1.0, minimum-scale = 1.0, maximum-scale = 1.0, user-scalable = no"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<title>意见反馈</title>
<link type="text/css" href="../css/reset.css" rel="stylesheet" />
<link type="text/css" href="../css/public.css" rel="stylesheet" />
<link type="text/css" href="../css/wode.css" rel="stylesheet" />
<script>
    var deviceWidth = Math.min(640, window.innerWidth)
    document.documentElement.style.fontSize = deviceWidth / 7.5 + "px"
</script>

<script src="../js/jquery.min.js?v=2.1.4"></script>
<script src="../js/core.js"></script>
<script src="../js/12.7.1shehzifankui.js"></script>
</head>
<body>
<!-- top -->
<div class="header">
    <header class="p_header public-red">
        <a href="javascript:history.go(-1);" class="p_header_left">
            <i class="p_left" title="返回"></i>
        </a>
        <h1 class="p_dizhi">意见反馈</h1>
    </header>
</div>
<!--意见反馈-->
<form>
    <div class="public-jianxi"></div>
    <textarea class="shezhi_fankui" placeholder="请输入您的宝贵意见，欢迎多多反馈"></textarea>
</form> 
<div class="mid-width">
    <input type="button" class="p_button" onclick="tijiao()" value="提交反馈">
</div>
<script>
	denglu();
	function denglu(){
		$.ajax({
			url: urlcore + "/api/login/loginPhoneweixin",
			type: "POST",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			data: JSON.stringify({
				phone:"18872567851",
				password:"e10adc3949ba59abbe56e057f20f883e"
			}),
			success: function(da) {
				if(da.success == true) {
					//alert(JSON.stringify(da.data.data.id));
				/*	console.log(da.data.id);
                   console.log(da.data);
                   	console.log(da.data.id);*/
					//设置cookie
					var domain_url = urlcore.split('://')[1];
					if(domain_url.indexOf(':') > -1) {
						domain_url = domain_url.split(':')[0];
					} else {
						domain_url = domain_url.split('/')[0];
					}
	document.cookie = "sid=" + da.data.data.token + ";path=/;domain=" + domain_url;
				// alert(document.cookie);
			window.location.href = "../index.html";
				}else{
					alert(da.msg);
				}
			},
			error: function() {
				/* Act on the event */
				alert("error");
			}
		});
	}
</script>


<script type="text/javascript" src="../js/jquery-1.10.1.min.js"></script>
<script type="text/javascript">
var $input = $(".fake-box input");  
    $("#pwd-input").on("input", function() {  
        var pwd = $(this).val().trim();  
        for (var i = 0, len = pwd.length; i < len; i++) {  
            $input.eq("" + i + "").val(pwd[i]);  
        }  
        $input.each(function() {  
            var index = $(this).index();  
            if (index >= len) {  
                $(this).val("");  
            }  
        });  
        if (len == 6) {  
            //执行其他操作  
        }  
    }); 
</script>
</body>
</html>